﻿using dz.u9.jky.schema.Attrib;
using dz.u9.jky.schema.Common;
using System.Collections.Generic;

namespace dz.u9.jky.schema.PM
{
    /// <summary>
    /// 厂商价格调整
    /// </summary>
    public class DzPurPriceAdjustmentDTO
    {
        public string DocNo { get; set; }

        /// <summary>
        /// 弹性域
        /// </summary>
        [DzComplexObject("UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegments,UFIDA.U9.Base.BaseBE")]
        public DescFlexField DescFlexField { get; set; }

        [DzSimpleObject("UFIDA.U9.Base.DTOs.IDCodeNameDTO,UFIDA.U9.Base.BaseBE")]
        public string Supplier { get; set; }

        [DzSimpleObject("UFIDA.U9.Base.DTOs.IDCodeNameDTO,UFIDA.U9.Base.BaseBE")]
        public string SupplierSite { get; set; }

        [DzSimpleObject("UFIDA.U9.Base.DTOs.IDCodeNameDTO,UFIDA.U9.Base.BaseBE")]
        public string DocumentType { get; set; } = "PMTJ0001";

        [DzSimpleObject("UFIDA.U9.Base.DTOs.IDCodeNameDTO,UFIDA.U9.Base.BaseBE")]
        public string PriceList { get; set; }

        [DzList("UFIDA.U9.ISV.PM.PurPriceAdjustLineDTO,UFIDA.U9.ISV.PM.PMISV")]
        public List<DzPurPriceAdjustLineDTO> PurPriceLines { get; set; }

        [DzIgnore]
        public string Org { get; set; }
    }
}
